let chatIm = require("chatIm");
let WebIM = require("utils/WebIM")["default"];

App({
  globalData: {
    unReadSpot: false,
    userInfo: null,
    chat: null,
    saveFriendList: []
  },
  onLaunch() {
    chatIm.onLaunch()
  },
  onShow() {
   chatIm.conn.reopen();
      let user = {
          apiUrl: WebIM.config.apiURL,
          user: "jiadangwei",
          pwd: "111111",
          grant_type: "password",
          appKey: WebIM.config.appkey
      }
      chatIm.conn.loginOpen(user)
  },
  
});